/**
 * 吐司类的封装.
 */
/**
 * 用户弹框提示
 */
'use strict';
import Toast from 'react-native-root-toast';
module.exports={
    show(message,type){
        switch (type){
            case 1:
                Toast.show(message,{position:Toast.positions.CENTER,duration:2000});
                break;
            case 2:
                Toast.show(message,{position:Toast.positions.TOP, duration: Toast.durations.SHORT});
                break;
            case 3:
                Toast.show(message,{position:Toast.positions.BOTTOM, duration: Toast.durations.SHORT});
                break;
            default :
                Toast.show(message,{position:Toast.positions.CENTER, duration: Toast.durations.SHORT});
                break;
        }

    }
};